package main

import "fmt"

var pow = []int{1, 2, 4, 8, 16, 32, 64, 128}

func main() {
	for i, v := range pow {
		fmt.Printf("2**%d = %d\n", i, v)
	}

	for _, v := range pow {
		fmt.Printf("%d\n", v) // 1 2 4 8 16 32 64 128
	}

	for i := range pow {
		fmt.Printf("%d\n", i) // 0 1 2 3 4 5 6 7
	}
}
